class BiblioTab extends Bibliotheque
{
	protected Ouvrage[] arr;
	public static int MAX_COUNT = 10;

	public BiblioTab()
	{
		arr = new Ouvrage[MAX_COUNT];
	}

	public void add(Ouvrage ov)
	{
		if (this.count == MAX_COUNT)
			throw new UnsupportedOperationException();
		else
		{
			ov.setCote(this.count);
			arr[this.count] = ov;
			this.count++;
		}
	}

	public void remove(int cote)
	{
		if (this.count == 0)
			throw new UnsupportedOperationException();
		else
		{
			this.count--;
			arr[this.count] = null;
		}
	}

	public Ouvrage get(int cote)
	{
		//will throw ArrayIndexOutOfBoundsException if it fails
		return arr[cote];
	}

}
